//
//  BusinessViewController.m
//  lsOA
//
//  Created by 蓝水软件 on 2016/10/25.
//  Copyright © 2016年 苏州蓝水有限公司. All rights reserved.
//

#import "BusinessViewController.h"

@interface BusinessViewController ()<UIWebViewDelegate,UINavigationControllerDelegate>


@property (nonatomic,strong) UIWebView *zqxWebView;

@end

@implementation BusinessViewController

- (void)viewWillAppear:(BOOL)animated{
   
    [self.navigationController setNavigationBarHidden:NO animated:YES];
    [[UIApplication sharedApplication] setStatusBarHidden:YES];

}




- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.view.transform = CGAffineTransformMakeRotation(-M_PI/2);
    CGRect frame = [UIScreen mainScreen].applicationFrame;
  
    self.view.bounds = CGRectMake(64, 0, frame.size.height+20,frame.size.width);

    
    _zqxWebView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:_zqxWebView];
    _zqxWebView.delegate = self;
    _zqxWebView.backgroundColor = [UIColor lightGrayColor];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"gongjiao" ofType:@"html" inDirectory:@"operation"];
    [_zqxWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:path]]];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"];
    [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout='none';"];


}
-(void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
    [ScrollHiddle scrollHiddl:scrollView withVelocity:velocity withController:self];
}





/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
